
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title></title>
    <link href="../admin/adminstyle/1/adminstyle.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
    <tr>
        <td><p>位置：<a href="#">内部需求管理</a> &gt; <a href="#"><?=$title?></a></p>
        </td>
        <?php if($status==0){ ?>
        <div align="right" class="emenubutton">
            <input type="button" name="Submit5" value="新增需求" onclick="addRequirement();">&nbsp;&nbsp;
        </div>
        <?php  } ?>
    </tr>
</table>
<!--<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">-->
<!--    <form name="SearchForm" id="SearchForm" method="GET" action="requirement.php?method=list">-->
<!--        <input type=hidden name=ehash_7qky value=1q4Zh8T6cf4RFHqtLiPI>    <tr>-->
<!--            <td width="100%"> <div align="right">-->
<!---->
<!--                   项目名称： <input name="keyboard" type="text" id="keyboard" value="">-->
<!---->
<!--                    <input type="submit" name="Submit2" value="搜索">-->
<!--                </div></td>-->
<!--        </tr>-->
<!--    </form>-->
<!--</table>-->

<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header">
        <td width="5%"><div align="center">ID</div></td>
        <td width="10%" height="25"><div align="center">时间</div></td>
        <td width="15%" height="25"><div align="center">项目名称</div></td>
        <td width="15%" height="25"><div align="center">功能模块</div></td>
        <td width="20%" height="25"><div align="center">申请人</div></td>
        <td width="20%" height="25"><div align="center">状态</div></td>
        <td width="31%" height="25"><div align="center">操作</div></td>
    </tr>
    <?php while ($list=$empire->fetch($re)){  ?>
    <tr bgcolor="ffffff" onmouseout="this.style.backgroundColor='#ffffff'" onmouseover="this.style.backgroundColor='#C3EFFF'">
        <td width="5%"><div align="center"><?=$list['id']?></div></td>
        <td width="10%" height="25"><div align="center"><?=$list['start_time']?></div></td>
        <td width="15%" height="25"><div align="center"><?=$list['project']?></div></td>
        <td width="15%" height="25"><div align="center"><?=$list['functional_module']?></div></td>
        <td width="15%" height="25"><div align="center"><?=$list['applier_name']?></div></td>
        <td width="20%" height="25"><div align="center"><?php echo str_replace([0,1,2,],['<b>未审核</b>','<b>已审核</b>','<b>已执行</b>'],$list['status'])?></div></td>
        <td width="31%" height="25"><div align="center">
                <a href="requirement.php?method=edit&type=see&id=<?=$list['id']?>">[查看]</a>
            </div></td>
    </tr>
    <?php  } ?>

</table>
</body>
<script>
    function addRequirement() {
        window.location.href='requirement.php?&status=<?=$status?>&method=edit&ehash_dtCS="<?=$ehash?>"';
    }
</script>
</html>